#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxbool(bool value)
{
	System_Boolean *box = new(,System_Boolean);
	box->m_value = value;
	return (System_Object *)box;
}

internal bool ___unboxbool(System_Object *value)
{
	return ((System_Boolean *)value)->m_value;
}

//+ type
Implement_Type(System_Boolean,System_Object,)
Implement_DefaultCtor(System_Boolean,System_Object)
System_Type _boolType = { (__typeCtor)null, L"bool", (__typeBoxer)&___boxbool, (__typeUnboxer)&___unboxbool, (char*)default(bool), _TypeFlags_Value };
Declare_System(System_Boolean, bool)
Implement_System(System_Boolean, bool)
